<?php// Include MagPie RSS util'sinclude_once dirname(__FILE__) . '/magpierss/rss_fetch.inc';include_once dirname(__FILE__) . '/magpierss/rss_utils.inc';$data = unserialize(file_get_contents($c_data_file));$data['rss'] = fetch_rss($data['feed']);if (!$data['rss']){    $data['rss_error'] = magpie_error();}$item = $data['rss']->items[0];if (!empty($data['maxitems']) && is_int(intval($data['maxitems'])))    $data['rss']->items = array_slice($data['rss']->items, 0, $data['maxitems']);$data['rss_date'] = parse_w3cdtf($item['pubDate']);$smarty->assign("data", $data);return $smarty->fetch("template.tpl"); ?>